home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / tests / Makefile.os2 < prev    next >
Makefile  |  1997-08-09  |  2KB  |  114 lines

  1.  
  2. prefix = @prefix@
  3. exec_prefix = @exec_prefix@
  4. bindir = @bindir@
  5. libdir = @libdir@
  6. pixdir = ${libdir}/pix
  7. includedir = @includedir@
  8. mandir = @mandir@/man1
  9. srcdir = ../
  10. VPATH = ../
  11.  
  12. top_builddir = ..
  13.  
  14. PURELINK =
  15. PURIFY =
  16.  
  17. # Libraries needed to link with Tcl & (optionally) Tk
  18. TCLTK_LIBS = 
  19. # Include directives needed to compile with Tcl & Tk, and
  20. # -DTCL if Tcl is available, and
  21. # -DTK if Tk is available.
  22. TCLTK_FLAGS = 
  23.  
  24. # Libraries needed to link with GNU readline
  25. RLLIBS = 
  26. # Include directives needed to compile with GNU readline, and
  27. # -DREADLINE_2_0 if GNU readline 2.0 is available, or 
  28. # -DREADLINE_2_1 if GNU readline 2.1 (or later) is available.
  29. RLDEFS = 
  30.  
  31. CC = gcc
  32. CXX = gcc
  33. CDEFS = -DLIBDIR=\"$(libdir)\" 
  34. # -DDEBUG
  35. CFLAGS = -I$(top_builddir)/include -I$(srcdir)/include -g -Zcrtdll -O2 -fno-strength-reduce -D__ST_MT_ERRNO__ -Wall $(RLDEFS) $(CDEFS) $(TCLTK_FLAGS)
  36. CXXFLAGS = -I$(top_builddir)/include -I$(srcdir)/include -g -O2 -fno-strength-reduce -Wall $(RLDEFS) $(CDEFS) $(TCLTK_FLAGS)
  37. LDFLAGS = 
  38. LIBS = -lsocket -los2
  39. # -lefence
  40. CXXLIBS = -lstdcpp
  41.  
  42. libcclib = libcc/libpicc.a
  43. cclib = libpicc.a
  44.  
  45. INSTALL = $(LIBTOOL) @INSTALL@
  46. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  47. INSTALL_DATA = @INSTALL_DATA@
  48. YACC = bison -y
  49. RANLIB = ar -s
  50. RM = rm -f
  51. STRIP = strip
  52. SHELL = /bin/sh
  53. CPLIB = cp
  54. EXT = .EXE
  55. SUBMAKE_COMM = $(MAKE) -C $(top_builddir)/libsock -f Makefile.os2
  56. SUBMAKE_COMM_CC = $(MAKE) -C $(top_builddir)/libcc -f Makefile.os2
  57.  
  58. LIBTOOL = @LIBTOOL@
  59. LIBTOOLLINK = $(LIBTOOL) --mode=link
  60.  
  61. CCLINK = $(LIBTOOLLINK)  $(PURELINK) $(PURIFY) $(CC) $(LDFLAGS) $(CFLAGS)
  62. CXXLINK = $(LIBTOOLLINK) $(PURELINK) $(PURIFY) $(CXX) $(LDFLAGS) $(CXXFLAGS)
  63.  
  64. .SUFFIXES: .out .o .cc .c .e .r .f .y .l .s .p
  65.  
  66. .c.o:
  67.     $(CC) $(CFLAGS) -c $<
  68.  
  69. .cc.o:
  70.     $(CXX) $(CXXFLAGS) -c $<
  71.  
  72.  
  73. WITHTCL = $(TCLEXECS)
  74. WITHCXX = $(CXXEXECS)
  75. WITHPERL5 = $(PERLEXECS)
  76.  
  77. CEXECS = packers$(EXT)
  78.  
  79. CXXEXECS =
  80.  
  81. TCLEXECS =
  82.  
  83. PERLEXECS = 
  84.  
  85. EXECS = $(CEXECS) $(WITHOUTTCL) $(WITHCXX) $(WITHOUTPERL5)
  86.  
  87. WITHCXXLIB = ../libcc/libpicc.la
  88. PILIB = ../libsock/libpisock.la
  89. PICCLIB = $(WITHCXXLIB)
  90.  
  91. all: $(PILIB) $(PICCLIB) $(EXECS) 
  92.  
  93. $(PILIB): FORCE
  94.     $(SUBMAKE_COMM)
  95.  
  96. $(WITHCXXLIB): FORCE
  97.     $(SUBMAKE_COMM_CC)
  98.  
  99. tests test: $(EXECS)
  100.     packers$(EXT)
  101.  
  102. packers$(EXT): $(PILIB) packers.o
  103.     $(CCLINK) packers.o $(PILIB) -o $@ $(LIBS)
  104.  
  105. distclean: clean
  106.     $(RM) Makefile
  107.  
  108. clean:
  109.     $(RM) *.o *.a *.lo *.la core a.out test_s test_c install-prc$(EXT) pilot-debug$(EXT)
  110.     $(RM) -r .libs
  111.     $(RM) $(CEXECS) $(TCLEXECS) $(CXXEXECS) $(PERLEXECS)
  112.     
  113. FORCE:
  114.